#cake.css

@import url('https://fonts.googleapis.com/css?family=Lato:300italic');
@import url('https://fonts.googleapis.com/css?family=Titan+One');
@import url('https://fonts.googleapis.com/css?family=Lobster');

html,
body {
  width: 100%;
  height: 100%;
}

body {
    background: url(../images/夜晚的路.jpg) no-repeat;
}
a {
    text-decoration: none;
}
#cake {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20%;
  overflow: hidden;
  animation: fadeIn 2.2s linear ;
}
@keyframes fadeIn {
    0% {
    opacity: 0; /*初始状态 透明度为0*/
    }
    50% {
    opacity: 0; /*中间状态 透明度为0*/
    }
    100% {
    opacity: 1; /*结尾状态 透明度为1*/
    }
    }

/* ============================================== Candle
*/

.velas {
  background: #ffffff;
  border-radius: 10px;
  position: absolute;
  top: 540px;
  left: 50%;
  margin-left: -2.4px;
  margin-top: -18.33333333px;
  width: 5px;
  height: 35px;
  transform: translateY(-300px);
  backface-visibility: hidden;
  animation: in 500ms 6s ease-out forwards;
}
.velas:after,
.velas:before {
  background: rgba(255, 0, 0, 0.4);
  content: "";
  position: absolute;
  width: 100%;
  height: 2.22222222px;
}
.velas:after {
  top: 25%;
  left: 0;
}
.velas:before {
  top: 45%;
  left: 0;
}

/* ============================================== Fire
*/

.fuego {
  border-radius: 100%;
  position: absolute;
  top: -20px;
  left: 50%;
  margin-left: -2.6px;
  width: 6.66666667px;
  height: 18px;
}
.fuego:nth-child(1) {
  animation: fuego 2s 6.5s infinite;
}
.fuego:nth-child(2) {
  animation: fuego 1.5s 6.5s infinite;
}
.fuego:nth-child(3) {
  animation: fuego 1s 6.5s infinite;
}
.fuego:nth-child(4) {
  animation: fuego 0.5s 6.5s infinite;
}
.fuego:nth-child(5) {
  animation: fuego 0.2s 6.5s infinite;
}
.fireworks {
	width: 100%;
	height: auto;
	position: absolute;
	top: 25%;
	left: 0;
	right: 0;
	background: url(../../../ff.jpg);
	z-index: 1;
}
/* ============================================== Animation Fire
*/

@keyframes fuego {
  0%, 100% {
    background: rgba(254, 248, 97, 0.5);
    box-shadow: 0 0 40px 10px rgba(248, 233, 209, 0.2);
    transform: translateY(0) scale(1);
  }
  50% {
    background: rgba(255, 50, 0, 0.1);
    box-shadow: 0 0 40px 20px rgba(248, 233, 209, 0.2);
    transform: translateY(-20px) scale(0);
  }
}

@keyframes in {
  to {
    transform: translateY(0);
  }
}
.container {
    width: 800px;
    height: 420px;
    padding: 10px;
    margin: 0 auto;
    position: relative;
}
.detail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.balloon {
    width: 738px;
    margin: 0 auto;
    padding-top: 30px;
    position: relative;
    animation: rise 7s linear;
}
@keyframes rise
{
    0%
    {
        opacity: 0;
        top: 100%;
        
    }
    10%
    {
        top: 80%;
        opacity: 1;
    }
    20%
    {
        top: 65%;
        
    }
    30%
    {
        top: 55%;
        
    }
    40%
    {
        top: 45%;
        
    }
    50%
    {
        top: 35%;
        
    }
    60%
    {
        top: 25%;
       
    }
    70%
    {
        top: 20%;
        
    }
    80%
    {
        top: 10%;
      
    }
    90%
    {
        top: 5%;
     
    }
    100%
    {
        top: 0;
        
    }
}
.balloon > div {
    width: 104px;
    height: 140px;
    background: rgba(182, 15, 97, 0.9);
    border-radius: 0;
    border-radius: 80% 80% 80% 80%;
    margin: 0 auto;
    position: absolute;
    padding: 10px;
    box-shadow: inset 17px 7px 10px rgba(182, 15, 97, 0.9);
    cursor: pointer;
    /* -webkit-transform-origin: bottom center; */
}
.balloon .ballone {
    background: rgba(182, 15, 97, 0.9);
    left: 0;
    box-shadow: inset 10px 10px 10px rgba(135, 11, 72, 0.9);
    -webkit-animation: balloon1 6s ease-in-out infinite;
    -moz-animation: balloon1 6s ease-in-out infinite;
    -o-animation: balloon1 6s ease-in-out infinite;
    animation: balloon1 6s ease-in-out infinite;
}
.balloon .ballone:before {
    color: rgba(182, 15, 97, 0.9);
}
.balloon .balltwo {
    background: rgba(242, 112, 45, 0.9);
    left: 120px;
    box-shadow: inset 10px 10px 10px rgba(222, 85, 14, 0.9);
    -webkit-animation: balloon2 6s ease-in-out infinite;
    -moz-animation: balloon2 6s ease-in-out infinite;
    -o-animation: balloon2 6s ease-in-out infinite;
    animation: balloon2 6s ease-in-out infinite;
}
.balloon .balltwo:before {
    color: rgba(242, 112, 45, 0.9);
}
.balloon .ballthree {
    background: rgba(45, 181, 167, 0.9);
    left: 240px;
    box-shadow: inset 10px 10px 10px rgba(35, 140, 129, 0.9);
    -webkit-animation: balloon4 6s ease-in-out infinite;
    -moz-animation: balloon4 6s ease-in-out infinite;
    -o-animation: balloon4 6s ease-in-out infinite;
    animation: balloon4 6s ease-in-out infinite;
}
.balloon .ballthree:before {
    color: rgba(45, 181, 167, 0.9);
}
.balloon .ballfour {
    background: rgba(190, 61, 244, 0.9);
    left: 360px;
    box-shadow: inset 10px 10px 10px rgba(173, 14, 240, 0.9);
    -webkit-animation: balloon1 5s ease-in-out infinite;
    -moz-animation: balloon1 5s ease-in-out infinite;
    -o-animation: balloon1 5s ease-in-out infinite;
    animation: balloon1 5s ease-in-out infinite;
}
.balloon .ballfour:before {
    color: rgba(190, 61, 244, 0.9);
}
.balloon .ballfive {
    background: rgba(180, 224, 67, 0.9);
    left: 480px;
    box-shadow: inset 10px 10px 10px rgba(158, 206, 34, 0.9);
    -webkit-animation: balloon3 5s ease-in-out infinite;
    -moz-animation: balloon3 5s ease-in-out infinite;
    -o-animation: balloon3 5s ease-in-out infinite;
    animation: balloon3 5s ease-in-out infinite;
}
.balloon .ballfive:before {
    color: rgba(180, 224, 67, 0.9);
}
.balloon .ballsix {
    background: rgba(242, 194, 58, 0.9);
    left: 600px;
    box-shadow: inset 10px 10px 10px rgba(234, 177, 15, 0.9);
    -webkit-animation: balloon2 3s ease-in-out infinite;
    -moz-animation: balloon2 3s ease-in-out infinite;
    -o-animation: balloon2 3s ease-in-out infinite;
    animation: balloon2 3s ease-in-out infinite;
}
.balloon .ballsix:before {
    color: rgba(242, 194, 58, 0.9);
}
/* .ballspan {
    background-color: purple;
    color: #fff;
    font-size: 25px;
    margin-top: 100px;
}
@keyframes wobble {
25% {
   transform: rotate(4deg);
 }
75% {
  transform: rotate(-2deg);
 }
100% {
  transform: rotate(3deg);
 } 
} */
span {
    font-size: 4.8em;
    color: white;
    position: relative;
    top: 30px;
    left: 50%;
    margin-left: -27px;
    animation: happend 10s linear ;
    cursor: pointer;
}
@keyframes happend {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 0;
    }
    40% {
        opacity: 0;
    }
    60% {
        opacity: 0;
    }
    80% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/*BALLOON 1 4*/
@-webkit-keyframes balloon1 {
    0%, 100% {
        -webkit-transform: translateY(0) rotate(-6deg);
    }
    50% {
        -webkit-transform: translateY(-20px) rotate(8deg);
    }
}
@-moz-keyframes balloon1 {
    0%, 100% {
        -moz-transform: translateY(0) rotate(-6deg);
    }
    50% {
        -moz-transform: translateY(-20px) rotate(8deg);
    }
}
@-o-keyframes balloon1 {
    0%, 100% {
        -o-transform: translateY(0) rotate(-6deg);
    }
    50% {
        -o-transform: translateY(-20px) rotate(8deg);
    }
}
@keyframes balloon1 {
    0%, 100% {
        transform: translateY(0) rotate(-6deg);
    }
    50% {
        transform: translateY(-20px) rotate(8deg);
    }
}
/* BAllOON 2 5*/
@-webkit-keyframes balloon2 {
    0%, 100% {
        -webkit-transform: translateY(0) rotate(6eg);
    }
    50% {
        -webkit-transform: translateY(-30px) rotate(-8deg);
    }
}
@-moz-keyframes balloon2 {
    0%, 100% {
        -moz-transform: translateY(0) rotate(6deg);
    }
    50% {
        -moz-transform: translateY(-30px) rotate(-8deg);
    }
}
@-o-keyframes balloon2 {
    0%, 100% {
        -o-transform: translateY(0) rotate(6deg);
    }
    50% {
        -o-transform: translateY(-30px) rotate(-8deg);
    }
}
@keyframes balloon2 {
    0%, 100% {
        transform: translateY(0) rotate(6deg);
    }
    50% {
        transform: translateY(-30px) rotate(-8deg);
    }
}
/* BAllOON 0*/
@-webkit-keyframes balloon3 {
    0%, 100% {
        -webkit-transform: translate(0, -10px) rotate(6eg);
    }
    50% {
        -webkit-transform: translate(-20px, 30px) rotate(-8deg);
    }
}
@-moz-keyframes balloon3 {
    0%, 100% {
        -moz-transform: translate(0, -10px) rotate(6eg);
    }
    50% {
        -moz-transform: translate(-20px, 30px) rotate(-8deg);
    }
}
@-o-keyframes balloon3 {
    0%, 100% {
        -o-transform: translate(0, -10px) rotate(6eg);
    }
    50% {
        -o-transform: translate(-20px, 30px) rotate(-8deg);
    }
}
@keyframes balloon3 {
    0%, 100% {
        transform: translate(0, -10px) rotate(6eg);
    }
    50% {
        transform: translate(-20px, 30px) rotate(-8deg);
    }
}
/* BAllOON 3*/
@-webkit-keyframes balloon4 {
    0%, 100% {
        -webkit-transform: translate(10px, -10px) rotate(-8eg);
    }
    50% {
        -webkit-transform: translate(-15px, 20px) rotate(10deg);
    }
}
@-moz-keyframes balloon4 {
    0%, 100% {
        -moz-transform: translate(10px, -10px) rotate(-8eg);
    }
    50% {
        -moz-transform: translate(-15px, 10px) rotate(10deg);
    }
}
@-o-keyframes balloon4 {
    0%, 100% {
        -o-transform: translate(10px, -10px) rotate(-8eg);
    }
    50% {
        -o-transform: translate(-15px, 10px) rotate(10deg);
    }
}
@keyframes balloon4 {
    0%, 100% {
        transform: translate(10px, -10px) rotate(-8eg);
    }
    50% {
        transform: translate(-15px, 10px) rotate(10deg);
    }
}

.photos {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  .img {
    height: 100px;
    width: 100px;
  }
  .photos div {
    position: absolute;
    display: block;
  }
  .photos div:nth-child(1) {
    left: 80%;
    animation: heart 15s linear infinite;
    animation-delay: -5s;
  }
  .photos div:nth-child(2) {
    left: 85%;
    animation: heart 20s linear infinite;
    animation-delay: -5s;
  }
  .photos div:nth-child(3) {
    left: 82%;
    animation: heart 25s linear infinite;
  }
  .photos div:nth-child(4) {
    left: 75%;
    animation: heart 15s linear infinite;
    animation-delay: -7s;
  }
  .photos div:nth-child(5) {
    left: 70%;
    animation: heart 18s linear infinite;  /* 动画名称  持续时间  、、  持续运动次数 */
    animation-delay: -10s;
  }
  .photos div:nth-child(6) {
    left: 64%;
    animation: heart 12s linear infinite;
  }
  .photos div:nth-child(7) {
    left: 10%;
    animation: heart 14s linear infinite;
  }
  .photos div:nth-child(8) {
    left: 6%;
    animation: heart 15s linear infinite;
  }
  .photos div:nth-child(9) {
    left: 30%;
    animation: heart 10s linear infinite;
    animation-delay: 1s;
  }
  .photos div:nth-child(10) {
    left: 32%;
    animation: heart 12s linear infinite;
  }
  .photos div:nth-child(11) {
    left: 38%;
    animation: heart 12s linear infinite;
  }
  .photos div:nth-child(12) {
    left: 22%;
    animation: heart 12s linear infinite;
  }
  @keyframes heart
  {
    0%
    {
        opacity: 0;
        top: 0%;
        transform: translateX(20px) rotate(0deg);
    }
    10%
    {
        opacity: 1;
    }
    20%
    {
        transform: translateX(-20px) rotate(-45deg);
    }
    40%
    {
        transform: translateX(-20px) rotate(-90deg);
    }
    60%
    {
        transform: translateX(20px) rotate(-135deg);
    }
    80%
    {
        transform: translateX(-20px) rotate(-180deg);
    }
    100%
    {
        top: 80%;
        transform: translateX(-20px) rotate(-225deg);
    }
  }
  /* .photos2 {
    transform: scale(0.9) rotateY(180deg);
    filter: blur(1px);
  }
  .photos3 {
    transform: scale(0.8) rotateX(180deg);
    filter: blur(1.5px);
  }
  .photos4 {
    transform: scale(1.2) rotateZ(360deg);
    filter: blur(1.5px);
  } */

.photos  .line {
    position: relative;
    top: 31%;
    width: 28em;
    margin: 0 auto;
    font-size: 18px;
    text-align: center;
    white-space: nowrap;
    color: #fff;
    overflow: hidden;transform: translateY(-50%);
    animation-delay:5s;
}
.photos [class^=line] {
    position: relative;
    width: 28em;
    margin: 0 auto;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;   
    color: #fff;
    overflow: hidden;transform: translateY(-50%);  
}
.photos  .line1 {
    top: 31.8%;
    animation-delay:7s;
}
.photos  .line2 {
    top: 32.6%;
    animation-delay:10s;
}
.photos  .line3 {
    top: 33.4%;
    animation-delay:12s;
}
.photos  .line4 {
    top: 34.2%;
    animation-delay:14.5s;
}
.photos  .line5 {
    top: 35%;
    animation-delay:17s;
}
.photos  .line6 {
    top: 35.8%;
    animation-delay:19.5s;
}
.photos  .line7 {
    top: 36.6%;
    animation-delay:22s;
}
.photos  .line8 {
    top: 37.4%;
    animation-delay:24.5s;
}
.photos  .line9 {
    top: 38.2%;
    animation-delay:27s;
}
.photos  .line9 {
    top: 38.8%;
    animation-delay:28s;
}
.photos  .line10 {
    top: 39.6%;
    animation-delay:30s;
}


/* 动画 */
.anim-typewriter {
    animation: typewriter 4s steps(40) 1s 1 normal both,
    blinkTextCursor 500ms steps(40) infinite normal;
}
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 16em;
    }
}
@keyframes blinkTextCursor {
    from {
        border-right-color: rgba(255,255,255,0.75);

    }
    to {
        border-right-color: transparent;
    }
}